]> dgit.raspbian.org Git - gnome-shell.git/commit
shell-screenshot: Only allow one screenshot request at a time per sender
authorAdel Gadllah <adel.gadllah@gmail.com>
Sat, 27 Sep 2014 11:35:22 +0000 (13:35 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Fri, 3 Oct 2014 14:22:36 +0000 (16:22 +0200)
commitf02b007337e61436aaa0e81a86ad707b6d277378
tree7396f4651d77c5367ddf05d3eef45195ea70a732
parent0035de4ab70291a0f739c157a27d63a9dbeabd42
shell-screenshot: Only allow one screenshot request at a time per sender

We currently allow infinite number of screenshot requests to be active at
the same time, which can "dos" the system and cause OOM.

So fail subsequent requests for the same sender when a screenshot operation
is already running.

https://bugzilla.gnome.org/show_bug.cgi?id=737456
js/ui/screenshot.js
src/shell-screenshot.c
src/shell-screenshot.h